<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<?php
include 'counter.php';
?>
<html xmlns="http://www.w3.org/1999/xhtml">
    <head>
        <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
        <title><?php echo Config::get('web_title'); ?></title>
        <link href="css/style.css" rel="stylesheet" type="text/css" />
        <link href="css/nivo-slider.css" rel="stylesheet" type="text/css" media="screen" />
        <link href="css/jquery.lightbox-0.4.css" rel="stylesheet" type="text/css" media="screen" />
        <link type="text/css" href="css/ui-lightness/jquery-ui-1.7.3.custom.css" rel="stylesheet" />
        <script type="text/javascript" src="js/jquery-1.4.1.min.js"></script>
        <script type="text/javascript" src="js/marqueecontent.js"></script>
        <script type="text/javascript" src="js/jquery.nivo.slider.pack.js"></script>
        <script type="text/javascript" src="js/jquery.lightbox-0.5.js"></script>
        <script type="text/javascript" src="js/datepicker.js"></script>
        <script type="text/javascript">
            $(window).load(function() {
                $('#slider').nivoSlider();
                $('#slider2').nivoSlider();
                $('a.light').lightBox();
                $('#datepicker').datepicker({
                    inline: true
                });
            });
        </script>
        <!--[if IE 6]>
                <style type="text/css">
                    #marqueecontainer, #vmarquee {left: 0px!important}

		</style>
        <![endif]-->
        <script type="text/javascript">

            var _gaq = _gaq || [];
            _gaq.push(['_setAccount', 'UA-12152596-4']);
            _gaq.push(['_trackPageview']);

            (function() {
                var ga = document.createElement('script'); ga.type = 'text/javascript'; ga.async = true;
                ga.src = ('https:' == document.location.protocol ? 'https://ssl' : 'http://www') + '.google-analytics.com/ga.js';
                var s = document.getElementsByTagName('script')[0]; s.parentNode.insertBefore(ga, s);
            })();

        </script>
    </head>

    <body>
        <div id='main_wrapper'>
            <div id="header">
                <div id="logo"> <a href="?"><img src="img/logo.jpg" /></a> </div>
                <div id='intericon'>
                    <div class="lang">
                        <a href="setlang?dest=<?php echo $this->currentUrl(true); ?>&amp;code=vn"><img src="img/vn.jpg" style="padding-right: 7px"/></a>
                        <a href="setlang?dest=<?php echo $this->currentUrl(true); ?>&amp;code=en"><img src="img/en.jpg"/></a>
                    </div>
                </div>
            </div>
            <div id="menu">
                <ul class="menu" id="menu-top-menu">
                    <li><a href="home" class="first"><?php echo fl('home') ?></a>
                        <ul class="sub-menu">
                            <li><a href="about"><?php echo fl('about') ?></a></li>
                            <li><a href="entry?cid=8"><?php echo fl('news') ?></a></li>
                            <li><a href="photo"><?php echo fl('gallery') ?></a></li>
                        </ul>
                    </li>
                    <li><a><?php echo fl('study') ?></a>
                        <ul class="sub-menu">
                            <?php
                            $narows = Db::getRows('*', 'nation order by vitri');
                            foreach ($narows as $narow) {
                                if (Lang::getCode() == 'en') {
                                    echo ' <li><a>' . $narow['name2'] . '</a>';
                                } else {
                                    echo ' <li><a>' . $narow['name'] . '</a>';
                                }
                                echo '<ul class="sub-menu">
                                    <li><a href="entry?nt=' . $narow['id'] . '&lv=1">' . fl('Secondary') . '</a></li>
                                    <li><a href="entry?nt=' . $narow['id'] . '&lv=2">' . fl('College') . '</a></li>
                                    <li><a href="entry?nt=' . $narow['id'] . '&lv=3">' . fl('University') . '</a></li>
                                    <li><a href="entry?nt=' . $narow['id'] . '&lv=4">' . fl('Postgraduate') . '</a></li>
                                </ul>
                            </li>';
                            }
                            ?>
                        </ul>
                    </li>
                    <li><a><?php echo fl('Student_handbook') ?></a>
                        <ul class="sub-menu">
                            <?php
                            $typerows = Db::getRows('*', 'type', 'menu=3');
                            foreach ($typerows as $typerow) {
                                if (Lang::getCode() == 'en') {
                                    echo ' <li><a>' . $typerow['name2'] . '</a>
                                <ul class="sub-menu">';
                                } else {
                                    echo ' <li><a>' . $typerow['name'] . '</a>
                                <ul class="sub-menu">';
                                }
                                $narows = Db::getRows('*', 'nation order by vitri');
                                foreach ($narows as $narow) {
                                    if (Lang::getCode() == 'en') {
                                        echo ' <li><a href="entry?cid=' . $typerow['id'] . '&nt=' . $narow['id'] . '">' . $narow['name2'] . '</a></li>';
                                    } else {
                                        echo ' <li><a href="entry?cid=' . $typerow['id'] . '&nt=' . $narow['id'] . '">' . $narow['name'] . '</a></li>';
                                    }
                                }
                                echo '</ul></li>';
                            }
                            ?>
                        </ul>
                    </li>
                    <li><a><?php echo fl('Support_Services') ?></a>
                        <ul class="sub-menu">
                            <?php
                            $typerows = Db::getRows('*', 'type', 'menu=4 and id != 7');
                            foreach ($typerows as $typerow) {
                                if (Lang::getCode() == 'en') {
                                    echo ' <li><a href="entry?cid=' . $typerow['id'] . '">' . $typerow['name2'] . '</a></li>';
                                } else {
                                    echo ' <li><a href="entry?cid=' . $typerow['id'] . '">' . $typerow['name'] . '</a></li>';
                                }
                            }
                            ?>
                        </ul>
                    </li>
                    <li><a href="entry?cid=7"><?php echo fl('Scholarships') ?></a></li>
                    <li><a href="contact"><?php echo fl('contact') ?></a></li>
                </ul>
            </div>
            <div id="body_wrapper">
                <table width="100%" border="0" cellspacing="0" cellpadding="0">
                    <tr>
                        <td valign="top" class="bodytext">
